<template>
	<b-layout-index>
		<navbar :isStyle="light" bgcolor="#fff" :title="$t('withdrawals')"></navbar>
		<u-sticky bgColor="#fff">
			<u-tabs current="current" @click="click" :list="list1"></u-tabs>
		</u-sticky>
		<view>
			<shop-order-coupon v-for="(item,index) in 10"></shop-order-coupon>
		</view>
		<view class="mg-top-30">

			<u-empty mode="order">
			</u-empty>
		</view>

	</b-layout-index>
</template>

<script>
	export default {
		data(o) {

			return {
				list1: [{
						name: "全部",
					},
					{
						name: "未使用",
					},
					{
						name: "已过期"
					}
				],
				current: 0
			}
		},
		onLoad: function(options) {


			let index = parseInt(options.index)
			if (isNaN(index)) {
				index = 0;
			}
			this.current = index
			console.log("Organ", index)

		},
		methods: {
			click(item) {
				console.log('item', item);
			}
		}
	}
</script>

<style>
</style>
